import React, { useCallback } from 'react'
import ShopList from '@/components/shop_list/shop_list';
import Header from '@/components/header/header'
const Food = (props) => {
  const goBack = useCallback(() => {
    props.history.push('./msite');
  }, [])
  const params = props.match.params;
  console.log(props);
  return <div className='foodlist-container'>
    <Header goBack={goBack} title={params.title} />
    <ShopList geohash={params.geohash.split(',')} />
  </div>
};
export default Food